import request from '@/utils/request'

/**
 * agv信息分页查询
 * @param {查询条件} data
 */
export function pageBaseAgv(query) {
  return request({
    url: 'BaseManage/BaseAgv/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增agv信息
 * @param data
 */
export function addBaseAgv(data) {
  return request({
    url: 'BaseManage/BaseAgv',
    method: 'post',
    data: data,
  })
}
/**
 * 修改agv信息
 * @param data
 */
export function updateBaseAgv(data) {
  return request({
    url: 'BaseManage/BaseAgv',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取agv信息详情
 * @param {Id}
 */
export function getBaseAgv(id) {
  return request({
    url: 'BaseManage/BaseAgv/' + id,
    method: 'get'
  })
}

/**
 * 删除agv信息
 * @param {主键} pid
 */
export function delBaseAgv(pid) {
  return request({
    url: 'BaseManage/BaseAgv/delete',
    method: 'POST',
    data: pid
  })
}
